/**
* Copyright 2009, Jethro Grassie, Creative Jar Technology Ltd (http://www.cjtech.co.uk)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
**/

package com.adobe.cairngorm.business;

import com.adobe.cairngorm.CairngormError;
import com.adobe.cairngorm.CairngormMessageCodes;

import javafx.io.http.HttpRequest;

public abstract class ServiceLocator
{ 
    var httpServices:HTTPServices = HTTPServices{};
    var rmiServices:RMIServices = RMIServices{};

    postinit
    {
        httpServices.register(this);
        rmiServices.register(this);
    }

    public function getHTTPService(name:String):HTTPService
    {
        return httpServices.getService(name) as HTTPService;
    }

    public function getRMIService(name:String):RMIService
    {
        return rmiServices.getService(name) as RMIService;
    }
}

